FROM openjdk:11
MAINTAINER JY
ENV LANG en_US.UTF-8
ENV JAVA_OPTS="-server -Xmx2G -Xms2G -Xmn256m -XX:PermSize=128m -Xss256k -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:LargePageSizeInBytes=128m -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70"
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
RUN mkdir -p /app/logs
ADD fy-auth-1.0.jar /app/fy-auth.jar
ENTRYPOINT ["java","-Xmx2048m","-jar","/app/fy-auth.jar"]